package org.jugile.web2;

import java.lang.reflect.Method;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.log4j.Logger;
import org.jugile.util.Jugile;
import org.jugile.util.Props;
import org.jugile.util.Proxy;

public class Worker extends BaseWorker implements ServletContextListener {
	static Logger log = Logger.getLogger(Worker.class);

	private Thread t;
	public void contextDestroyed(ServletContextEvent arg0) {
		t.interrupt();}

	public void contextInitialized(ServletContextEvent context) {
		t = new Thread(this);
		t.start();
		log.info("Worker initialized");
	}

}

